package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.ContaminantDto;
import com.leadingsoft.pwxk.model.Contaminant;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class ContaminantConverter extends AbstractConverter<Contaminant, ContaminantDto> {

	@Override
	protected ContaminantDto toDtoActual(Contaminant model) {
		// TODO Auto-generated method stub

		ContaminantDto dto = new ContaminantDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setCommentinfo(model.getCommentinfo());
		dto.setWrwamount(model.getWrwamount());
		dto.setWrwid(model.getWrwid());
		dto.setWrwname(model.getWrwname());

		return null;
	}

	@Override
	public void copyProperties(Contaminant model, ContaminantDto dto) {
		// model.setId(dto.getId());
		// model.setDataid(dto.getDataid());
		model.setCommentinfo(dto.getCommentinfo());
		model.setWrwamount(dto.getWrwamount());
		model.setWrwid(dto.getWrwid());
		model.setWrwname(dto.getWrwname());
	}

}
